<script lang="ts" setup>
import { ref } from 'vue'

const totalCount = ref(100)
console.log(totalCount)
const addCount = () => {
  totalCount.value++
}
const minusCount = () => {
  totalCount.value--
}
</script>

<template>
  <div>
    <button @click="addCount">+</button>
    <span>{{ totalCount }}</span>
    <button @click="minusCount">-</button>
  </div>
</template>

<style scoped></style>